package com.bw.msg.adapter;

import com.bw.msg.R;
import com.bw.msg.entity.MsgEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

/**
 * @author KK
 * @description:
 * @date :2021/10/19 10:26
 */
public class MsgAdapter extends BaseQuickAdapter<MsgEntity.DataBean, BaseViewHolder> {
    public MsgAdapter() {
        super(R.layout.item_msg_txt);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, MsgEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.item_msg_tvzt,dataBean.getMsg_title());
        baseViewHolder.setText(R.id.item_msg_tvmsg,dataBean.getMsg_content());
        baseViewHolder.setText(R.id.item_msg_time,dataBean.getMsg_time());
    }
}
